<template>
  <div>
    <navbar bold title="Dialog 弹出框"/>
    <w-dialog ref="dialog"/>
    <w-button @click="openDialog">打开dialog</w-button>
  </div>
</template>

<script>
import WDialog from "@/components/dialog/dialog";
import Navbar from "@/components/navbar/navbar";
import WButton from "@/components/button/button";
export default {
  name: "test-dialog",
  components: {WButton, Navbar, WDialog},
  methods: {
    openDialog() {
      this.$refs.dialog.showDialog()
    }
  }
}
</script>

<style scoped>

</style>